/*
 * *******************************************************************
 *   @项目名称: BHex Android
 *   @文件名称: FuturesPositionOrder.java
 *   @Date: 19-6-23 下午5:29
 *   @Author: ppzhao
 *   @Description:
 *   @Copyright（C）: 2019 BlueHelix Inc.   All rights reserved.
 *   注意：本内容仅限于内部传阅，禁止外泄以及用于其他的商业目的.
 *  *******************************************************************
 */

package io.bhex.sdk.trade.futures.bean;

import java.io.Serializable;

/**
 * 持仓单
 */
public class FuturesPositionOrder implements Serializable {

    /**
     * accountId : 122216245228131
     * positionId : 122216245228131
     * symbolId : BTC111
     * symbolName : BTC111
     * leverage : 12
     * total : 123
     * positionValues : 10
     * margin : 0.82
     * minMargin : 0.82
     * avgPrice : 11.00
     * liquidationPrice : 11.01
     * marginRate : 0.1
     * indices : 123.00000
     * available : 12.000
     * isLong : 1
     * realisedPnl : 1000.00
     * unrealisedPnl : 1000.00
     * unit : USDT
     */

    private String accountId;
    private String exchangeId;
    private String positionId;
    private String symbolId;
    private String symbolName;
    private String leverage;    //杠杆。 leverage =1/保证金率 = 1/(仓位保证金/仓位价值)
    private String total;       //仓位(手)
    private String positionValues;  //当前仓位价值（USDT）。仓位价值（USDT） =total*price(当前价格)
    private String margin;      //仓位保证金（USDT
    private String minMargin;   //最多减少保证金（USDT）
    private String avgPrice;    //开仓均价。开仓均价 = 累计开仓价值 / （仓位 * 合约乘数）
    private String liquidationPrice;    //预估强平价
    private String marginRate;      //保证金率。保证金率 = 仓位保证金/仓位价值
    private String indices;         //交割指数
    private String available;       //可平量
    private String coinAvailable;       //
    private String isLong;          //仓位方向: 1=多仓，0=空仓
    private String realisedPnl;     //已实现盈亏
    private String unrealisedPnl;   //未实现盈亏
    private String unit;            //coin token unit
    private String profitRate;      //收益率

    public String getAccountId() {
        return accountId;
    }

    public void setAccountId(String accountId) {
        this.accountId = accountId;
    }

    public String getPositionId() {
        return positionId;
    }

    public void setPositionId(String positionId) {
        this.positionId = positionId;
    }

    public String getSymbolId() {
        return symbolId;
    }

    public void setSymbolId(String symbolId) {
        this.symbolId = symbolId;
    }

    public String getSymbolName() {
        return symbolName;
    }

    public void setSymbolName(String symbolName) {
        this.symbolName = symbolName;
    }

    public String getLeverage() {
        return leverage;
    }

    public void setLeverage(String leverage) {
        this.leverage = leverage;
    }

    public String getTotal() {
        return total;
    }

    public void setTotal(String total) {
        this.total = total;
    }

    public String getPositionValues() {
        return positionValues;
    }

    public void setPositionValues(String positionValues) {
        this.positionValues = positionValues;
    }

    public String getMargin() {
        return margin;
    }

    public void setMargin(String margin) {
        this.margin = margin;
    }

    public String getMinMargin() {
        return minMargin;
    }

    public void setMinMargin(String minMargin) {
        this.minMargin = minMargin;
    }

    public String getAvgPrice() {
        return avgPrice;
    }

    public void setAvgPrice(String avgPrice) {
        this.avgPrice = avgPrice;
    }

    public String getLiquidationPrice() {
        return liquidationPrice;
    }

    public void setLiquidationPrice(String liquidationPrice) {
        this.liquidationPrice = liquidationPrice;
    }

    public String getMarginRate() {
        return marginRate;
    }

    public void setMarginRate(String marginRate) {
        this.marginRate = marginRate;
    }

    public String getIndices() {
        return indices;
    }

    public void setIndices(String indices) {
        this.indices = indices;
    }

    public String getAvailable() {
        return available;
    }

    public void setAvailable(String available) {
        this.available = available;
    }

    public String getIsLong() {
        return isLong;
    }

    public void setIsLong(String isLong) {
        this.isLong = isLong;
    }

    public String getRealisedPnl() {
        return realisedPnl;
    }

    public void setRealisedPnl(String realisedPnl) {
        this.realisedPnl = realisedPnl;
    }

    public String getUnrealisedPnl() {
        return unrealisedPnl;
    }

    public void setUnrealisedPnl(String unrealisedPnl) {
        this.unrealisedPnl = unrealisedPnl;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getExchangeId() {
        return exchangeId;
    }

    public void setExchangeId(String exchangeId) {
        this.exchangeId = exchangeId;
    }

    public String getCoinAvailable() {
        return coinAvailable;
    }

    public void setCoinAvailable(String coinAvailable) {
        this.coinAvailable = coinAvailable;
    }

    public String getProfitRate() {
        return profitRate;
    }

    public void setProfitRate(String profitRate) {
        this.profitRate = profitRate;
    }
}
